package com.kkwrite.regimen.provider.repository;

import java.util.List;

import com.kkwrite.regimen.provider.domain.RegCollectionDO;
import com.kkwrite.regimen.provider.domain.RegSpokesmanDO;

import org.springframework.data.jpa.repository.JpaRepository;


/**
 * 收藏类说明
 * @author JY
 *
 */

public interface RegCollectionRepository extends JpaRepository<RegCollectionDO, Long> {
	
	
	List<RegCollectionDO> findAllByUserId(Long userId);
	List<RegCollectionDO> findAllByUserIdAndCollectOwnerType(Long userId,Integer collectOwnerType);
}
